Skip to main content
Mint Starter Kit home page
1.0
Search...
⌘K
Support
Dashboard
Dashboard
Search...
Navigation
Validations
Validate Promotions [Deprecated]
Developer guides
API reference
Voucherify dashboard documentation
Documentation
Community
Blog
Endpoints
Publications
Qualifications
Validations
POST
Validate Stackable Discounts
POST
Validate Voucher [Deprecated]
deprecated
POST
Validate Promotions [Deprecated]
deprecated
POST
Validate Promotion Tier [Deprecated]
deprecated
Redemptions
Vouchers
Campaigns
Promotions
Rewards
Loyalties
Customers
Orders
Products
Product Collections
Validation Rules
Segments
Events
Async Actions
Exports
Categories
Metadata Schemas
Locations
Referrals
Bin
Templates
Management
OAuth
Client-side
API Reference
Events
Events redemption
Events customer
Events publication
Events voucher
Events campaign
Events bus_val_rule
Events distribution
Validations
Validate Promotions [Deprecated]
Copy page
<!-- theme: danger --> > ❗️ Deprecated > > This endpoint represents the deprecated version of the API responsible for qualification, and we do not recommend using it. The new [Qualifications API](ref:check-eligibility) introduces additional features and improvements while maintaining backward compatibility. Developers are encouraged to migrate to the latest version to take advantage of the latest enhancements and bug fixes. No updates will be provided to the deprecated endpoint. <!-- theme: danger --> > ❗️ Limitation > > Only the first 150 most recent promotion tiers are checked for eligibility. Older promotion tiers are ignored and not returned. Use this method to get valid promotions for a given customer and order. ### Advanced validation filters You can narrow down a validation to a specific promotion ID or tier metadata. Here are the examples of filtering queries you can use: | **Filter** | **Example** | |:---|:---| | promotion_id | [filters][promotion_id][conditions][$is]={{campaign_id}} | | tier metadata | [filters][metadata.{{promotion tier metadata key}}][conditions][$is]={{promotion tier metadata value}} | <!-- title: "Validate promotion against customer rules" lineNumbers: true --> ```cURL curl -X **GET** \ -H "X-Client-Application-Id: 011240bf-d5fc-4ef1-9e82-11eb68c43bf5" \ -H "X-Client-Token: 9e2230c5-71fb-460a-91c6-fbee64707a20" \ -H "Content-Type: application/json" \ -d '{ "customer": { "id": "cust_gN9KgORZECfdhG9qT6n82Zr7" }, "order": { "items": [ { "product_id": "prod_0a9f9ab4ab019a42d5", "quantity": 1 }, { "product_id": "prod_0a9f9aeddb019a42db", "quantity": 1 }, { "product_id": "prod_0a9f9ab4ab019a42d5", "quantity": "1" }, { "sku_id": "sku_0b7d7dfb090be5c619", "quantity": 1 }, { "product_id": "prod_0b72b0bd64d198e3ae", "quantity": 1 }, { "product_id": "prod_0b7d7c4e814be5c502", "quantity": 1 } ], "metadata":{ "payment_mean": ["credit-card"] } }, "options": { "expand": [ "category" ] } }'/ 'https://api.voucherify.io/v1/promotions/validation?audienceRulesOnly=true' ``` <!-- title: "Validate promotion for specific campaign" lineNumbers: true --> ```cURL curl -X **GET** \ -H "X-Client-Application-Id: 011240bf-d5fc-4ef1-9e82-11eb68c43bf5" \ -H "X-Client-Token: 9e2230c5-71fb-460a-91c6-fbee64707a20" \ -H "Content-Type: application/json" \ -d `{ "customer": { "id": "cust_gN9KgORZECfdhG9qT6n82Zr7" }, "order": { "items": [ { "product_id": "prod_0a9f9ab4ab019a42d5", "quantity": 1 }, { "product_id": "prod_0a9f9aeddb019a42db", "quantity": 1 }, { "product_id": "prod_0a9f9ab4ab019a42d5", "quantity": "1" }, { "sku_id": "sku_0b7d7dfb090be5c619", "quantity": 1 }, { "product_id": "prod_0b72b0bd64d198e3ae", "quantity": 1 }, { "product_id": "prod_0b7d7c4e814be5c502", "quantity": 1 } ], "metadata":{ "payment_mean": ["credit-card"] } }, "options": { "expand": [ "category" ] }, "metadata": { "store_names": "Store 1 - New York - Broadway" } }`\ 'https://api.voucherify.io/v1/promotions/validation?[filters][promotion_id][conditions][$is]=camp_nYcAyjFXmEaBU0nB7EQ4hVTr' ``` <!-- title: "Validate promotion based on tier metadata" lineNumbers: true --> ```cURL curl -X **GET** \ -H "X-Client-Application-Id: 011240bf-d5fc-4ef1-9e82-11eb68c43bf5" \ -H "X-Client-Token: 9e2230c5-71fb-460a-91c6-fbee64707a20" \ -H "Content-Type: application/json" \ -d `{ "customer": { "id": "cust_gN9KgORZECfdhG9qT6n82Zr7" }, "order": { "items": [ { "product_id": "prod_0a9f9ab4ab019a42d5", "quantity": 1 }, { "product_id": "prod_0a9f9aeddb019a42db", "quantity": 1 }, { "product_id": "prod_0a9f9ab4ab019a42d5", "quantity": "1" }, { "sku_id": "sku_0b7d7dfb090be5c619", "quantity": 1 }, { "product_id": "prod_0b72b0bd64d198e3ae", "quantity": 1 }, { "product_id": "prod_0b7d7c4e814be5c502", "quantity": 1 } ], "metadata":{ "payment_mean": ["credit-card"] } }, "options": { "expand": [ "category" ] } }`\ 'https://api.voucherify.io/v1/promotions/validation?[filters][metadata.has_budget][conditions][$is]=true' ```
Copy page
Was this page helpful?
Yes
No
Validate Voucher [Deprecated]
Validate Promotion Tier [Deprecated]
⌘I